<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.io.*" %>
<%
	String filename = request.getParameter("filename");
	String okname = request.getParameter("okname");
	String softUserName = request.getParameter("softUserName");
	int status = Integer.parseInt(request.getParameter("status"));
	String path = "d:\\HRJ9_NWSD\\";
	if (!new File(path).isDirectory()) {
		new File(path).mkdirs();
	}
	
	try{
		FileWriter fw = new FileWriter(path+filename);
		fw.write(softUserName+","+status);
		fw.flush();
		fw.close();
		FileWriter ok = new FileWriter(path+okname);
		ok.close();
		
		response.getWriter().println("sucessful");
	}catch(Exception e){
		e.printStackTrace();
		response.getWriter().println("error");
	}
%>